<template>
  <div class="box">
    <div class="left">
      <slot name="title">
        <p>title单元格</p>
      </slot>

      <slot name="label">
        <p>label描述信息</p>
      </slot>
    </div>
    <div class="right">
      <!-- 匿名插槽 -->
      <slot name="value">
        <p>value内容</p>
      </slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'cell'
}
</script>

<style scoped>
.box {
  border: 1px solid #000;
  margin-top: 10px;
  display: flex;
  /* 水平对齐：两端对齐  相当于左右浮动 */
  justify-content: space-between;
  /* 垂直对齐： 居中 */
  align-items: center;
}

</style>
